<template>
  <div class="box" />
  vue3
  <demo1></demo1>
  <demo2></demo2>
</template>

<script setup lang="ts">
import { ref, reactive, onBeforeMount, onUnmounted } from 'vue'
import mittBus from '@/utils/mitt'
import demo1 from './demo1.vue'
import demo2 from './demo2.vue'
onBeforeMount(() => {
    mittBus.on('fashe', res => {
        console.log('父组件', res)
    })
})
</script>

<style lang="less" scoped>
.box {
}
</style>
